package com.ibm.risk.irmp.base.service.client.config;

import com.ibm.risk.irmp.common.config.client.ClientConfigCommon;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.service.invoker.HttpServiceProxyFactory;

public class AbstractBaseClientConfig extends ClientConfigCommon {
    @Value("${app.irmp.base.api.root}")
    private String baseUrl;
    @Value("${app.irmp.base.api.version:v2}")
    private String baseVersion;

    HttpServiceProxyFactory getHttpServiceProxyFactory() {
        return getHttpServiceProxyFactory(baseUrl, baseVersion);
    }
}
